﻿using System.Web;
using System.Web.Optimization;

namespace Ktot.Client.Web
{
    public class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            //bundles.Add(new ScriptBundle("~/bundles/core").Include(
            //    "~/Scripts/plugins/ratchet.js",
            //    "~/Scripts/plugins/angular.js",
            //    "~/Scripts/plugins/angular-route.js",
            //    "~/Scripts/linq.js",
            //    "~/Scripts/core/utils.js"));

            bundles.Add(new ScriptBundle("~/bundles/core").Include(
                "~/Scripts/plugins/jquery-2.1.1.min.js",
                "~/Scripts/plugins/ratchet.js",
                "~/Scripts/plugins/angular.js",
                "~/Scripts/plugins/angular-route.js",
                "~/Scripts/plugins/angular-local-storage.js",
                "~/Scripts/plugins/angular-filter.js",
                "~/Scripts/plugins/linq.js",
                "~/Scripts/core/utils.js",
                "~/Scripts/core/ui.js",
                "~/Scripts/core/base-controller.js"));

            bundles.Add(new ScriptBundle("~/bundles/app").Include(                
                "~/Scripts/app/ktot-app.js",
                "~/Scripts/app/services/task-service.js",                
                "~/Scripts/app/directives/modal-dropdown.js",
                "~/Scripts/app/controllers/side-menu-controller.js",
                "~/Scripts/app/controllers/project-controller.js",
                "~/Scripts/app/controllers/work-controller.js",
                "~/Scripts/app/controllers/home-controller.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                //"~/Content/css/bootstrap.css",
                "~/Content/css/ratchet.css",
                "~/Content/css/ratchet-theme-ios.css",
                "~/Content/css/bootstrap-icons.css",
                "~/Content/css/custom.css"));            

            BundleTable.EnableOptimizations = false;
        }
    }
}
